﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;
using SadlandVillage.Minigames.River;
using SadlandVillage.Core.Helper;


namespace SadlandVillage.Minigames.River
{
    public class GameOver : Microsoft.Xna.Framework.DrawableGameComponent
    {
        public GameOver(Game game)
            : base(game)
        {
        }

        public override void Initialize()
        {
            // TODO: Add your initialization code here

            base.Initialize();
        }

        public override void Draw(GameTime gameTime)
        {
            GraphicsDevice graphics = GlobalContainer.graphics;
            SpriteFont font = (SpriteFont)Game.Services.GetService(typeof(SpriteFont));
            graphics.Clear(Color.WhiteSmoke);

            SpriteBatch sBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
            sBatch.Begin();

            sBatch.Draw(StaticContainer.gameOverLoose, Vector2.Zero, Color.White);
            StringEffects.PrintShadowedString(sBatch, font, "Press \"Enter\" to play again, or \"Esc\" to leave the river.", new Vector2(340, 0), Color.Navy, Color.White, 1);
            sBatch.End();
            base.Draw(gameTime);
        }
     }
}
